/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.cslg.dorm.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 宿舍扣分细则Entity
 * @author 张文锦
 * @version 2016-12-30
 */
public class DormRules extends DataEntity<DormRules> {
	
	private static final long serialVersionUID = 1L;
	private String content;		// 扣分条件
	private String value;		// 扣分分值
	
	public DormRules() {
		super();
	}

	public DormRules(String id){
		super(id);
	}

	@Length(min=0, max=255, message="扣分条件长度必须介于 0 和 255 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=4, message="扣分分值长度必须介于 0 和 4 之间")
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
}